<include file="Public/header"/>
<div class="x-body">
    <form class="layui-form" action="{:U('Rule/modi_handle')}" method="post">

        <div class="layui-form-item">
            <label for="desc" class="layui-form-label">
                <span class="x-red">*</span>权限方法
            </label>
            <div class="layui-input-inline"  style="width:80%;">
                <input type="text" id="name" name="name" required="" lay-verify="required"                 autocomplete="off" value="{$info.name}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="desc" class="layui-form-label">
                <span class="x-red">*</span>权限名称
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" id="title" name="title" required="" lay-verify="required"                 autocomplete="off" value="{$info.title}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="desc" class="layui-form-label">
                <span class="x-red"></span>图标编码
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <input type="text" id="ico" name="ico"  autocomplete="off" value="{$info.ico}" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>
        <div class="layui-form-item">
                 <label for="status" class="layui-form-label">                                  		<span class="x-red">*</span>是否启用                 		                 </label>
                 <div class="layui-input-inline" style="width:80%;">
                     <select lay-verify="required" name="status" id="status">                                              <option value="1" <if condition="$info.status eq 1">selected=''</if> >启用</option>                         <option value="2" <if condition="$info.status eq 2">selected=''</if>>停用</option>
                     </select>                                          <span id="statusa"></span>
                 </div>
        </div>
        <div class="layui-form-item">
            <label for="username" class="layui-form-label">
                <span class="x-red">*</span>所属分类
            </label>
            <div class="layui-input-inline" style="width:80%;">
                <select name="type" id="type">
                    <option value="0" selected="">顶级</option>
                    <foreach name="type" item="v">
                        <option value="{$v.id}" <if condition="$info.pid eq $v['id']">selected=""</if>>{$v.title}</option>
                        <foreach name="v.sub" item="vv">
                            <option value="{$vv.id}" <if condition="$info.pid eq $vv['id']">selected=""</if>>{$vv.title}</option>
                        </foreach>
                    <br>
                    </foreach>
                </select>
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red"></span>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="L_repass" class="layui-form-label">
            </label> <input type="hidden" value="{$info.id}" name="nid" id="nid">
            <button  class="layui-btn" lay-filter="submit" lay-submit="submit">
                保存
            </button>
        </div>
    </form>
</div>
<include file="Public/footer"/>